<template>
   <ul>
                <li v-for="(v,i) in arr" :key="i">
                   <span ><img :src="v.img" alt=""></span>
                   <p>{{v.title}}</p>
                </li>
                
            </ul>
</template>

<script>
export default {
    props:{
        arr:Array,
       
    }

}
</script>

<style scoped>

ul{
      
    height: 1rem;
    display: flex;
    overflow-x: scroll;
    padding-right:0.2rem ;
   justify-content: flex-start;
   
}
ul>li>span{
    display: block;
    width: 0.7rem;
    height: 30%;
     
}
img{
    height: 100%;
    width: 70%;
}
p{
    width: 0.7rem;

}
ul>li{
    text-align: center;
    display: inline-block;
    flex-basis: 2rem;
    line-height: 0.3rem;
    font-size: 0.05rem;
    text-align: center;
  
}
.iconfont1{
    font-size: 0.25rem;
    
}
</style>